package com.atguigu.gulimall.member.service;

import com.atguigu.gulimall.member.exception.PhoneAlreadyExistException;
import com.atguigu.gulimall.member.exception.UsernameAlreadyExistException;
import com.atguigu.gulimall.member.vo.GiteeOAuth2RespVo;
import com.atguigu.gulimall.member.vo.RegisterVo;
import com.atguigu.gulimall.member.vo.UserLoginVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author shujun
 * @email 961624576@qq.com
 * @date 2024-01-14 18:14:44
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(RegisterVo registerVo) throws UsernameAlreadyExistException, PhoneAlreadyExistException;

    MemberEntity login(UserLoginVo userLoginVo);

    MemberEntity auth2Login(GiteeOAuth2RespVo giteeOAuth2RespVo) throws Exception;
}

